import request from '@/utils/request'
export function getCompanyLists() {
  return request({
    // url: '/company/department',
    url: '/mockcompany',
    method: 'GET'
  })
}
export function delCompanyLists(id) {
  return request({
    url: `/company/department/${id}`,
    method: 'DELETE'
  })
}
export function addCompanyLists(data) {
  return request({
    url: '/company/department',
    method: 'POST',
    data
  })
}
export function getCompany(id) {
  return request({
    url: '/company/department/' + id,
    method: 'GET'
  })
}
export function putCompany(id, data) {
  return request({
    url: '/company/department/' + id,
    method: 'PUT',
    data
  })
}
